home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <script language="JavaScript">
- <!--
-
- if (document.images) {
-
- // Preload rollover images
- nav1a = new Image(78,18);
- nav1a.src = "/images/addNewSubnet_b.jpg";
- nav2a = new Image(78,18);
- nav2a.src = "/images/help_b.jpg";
- nav3a = new Image(78,18);
- nav3a.src = "/images/addNewSubnet_b.jpg";
- nav4a = new Image(78,18);
- nav4a.src = "/images/help_b.jpg";
-
- // Preload rolloff images
- nav1 = new Image(78,18);
- nav1.src = "/images/addNewSubnet_g.jpg";
- nav2 = new Image(78,18);
- nav2.src = "/images/help_g.jpg";
- nav3 = new Image(78,18);
- nav3.src = "/images/addNewSubnet_g.jpg";
- nav4 = new Image(78,18);
- nav4.src = "/images/help_g.jpg";
-
-
- }
-
- // function for rollover
- function msover(imgName) {
- if (document.images[imgName]) {
- document.images[imgName].src = eval(imgName + "a.src");
- }
- }
-
- // function for rollout
- function msout(imgName) {
- if (document.images[imgName]) {
- document.images [imgName].src = eval(imgName + ".src");
- }
- }
-
- // -->
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta NAME="Author,Design" Content="GateKeeper Team; gatekeeper@infopulse.net">
- <meta NAME="Copyright" Content="Infopulse; www.infopulse.net">
- <title>Empty</title>
- </head>
-
- <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
-
-
- <%
- if ComDhcp.Subnet(-1)="error" and ComDhcp.Enabled then
- luci = 4
- end if
- %>
-
- <%
- if ComDhcp.Subnet(-1)="error" then
- if ComDhcp.Enabled then
- luci = 4
- else
- luci = 3
- end if
- ComDhcp.Enabled = false
- else
- luci = 1
- end if
- %>
-
- <%
- if Request.ReqParam("action") = "Disable DHCP" Then
- ' Process the DHCP settings
- luci = 0
- ComDhcp.Enabled = False
- On Error Resume Next
- ComDhcp.Commit
- end if
-
- if Request.ReqParam("action") = "Enable DHCP" Then
- ' Process the DHCP settings
- luci = 3
- ComDhcp.Enabled = True
- On Error Resume Next
- ComDhcp.Commit
- Response.Redirect("menuservices.htm")
- end if
-
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- End If
-
- %>
-
- <%
- If Not Len(ErrLine) = 0 Then
- Response.Write("<B><FONT COLOR=""#FF0000"">" & ErrLine & "</FONT></B><br>")
- End If
- %>
-
-
- <%
- if (luci<3) And (ComDhcp.Enabled) then
- %>
- <table border="0" cellpadding="0" cellspacing="1" width="100%">
- <tr valign=top>
- <td width="100%" valign=top align=right><a
- href="DhcpNewSubnet.agp?NewSubnet=Edit" onMouseOver="msover('nav1')" onMouseOut="msout('nav1')"><img
- src="/images/addNewSubnet_g.jpg" width="220" height="24" alt="Add new subnet" name=nav1 border=0></a><a
- href="hlpServices.htm" onMouseOver="msover('nav2')" onMouseOut="msout('nav2')"><img
- src="/images/help_g.jpg" width="129" height="24" alt="Help" name=nav2 border=0></a>
- </td>
- </tr>
- </table>
- <p><big><strong><font face="Arial">DHCP server</font></strong></big></p>
- <table border="1" cellpadding="0" cellspacing="0" width="95%">
-
-
- <tr>
- <td width="60%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Subnet
- </font></strong></td>
- <td width="10%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Action
- </font></strong></td>
-
- </tr>
-
- <%
- index=0
- while (ComDhcp.Subnet(index)<>"")
- name=locName
- ip=locIp
- %>
- <form method="POST" action= "/services/editDHCPSubnest.agp">
- <tr>
- <input type="hidden" name="identifier" value="<%Response.Write(comDhcp.Subnet(index))%>" >
- <td width="60%"><A HREF="editDhcpClients.agp?identifier=<%Response.Write(comDhcp.Subnet(index))%> "> <%Response.Write(comDhcp.Subnet(index))%> </A></td>
- <td width="10%" nowrap="TRUE">
- <input type="submit" name="action" value="Properties">
- <input type="submit" name="action" value="Delete"></td>
- </tr>
- </form>
-
- <% index=index+1
- wend
- %>
- </table>
- <br>
-
- <%
- End If
- %>
-
- <br>
-
- <form method="POST" action= "/services/editdhcp.agp">
-
- <center>
-
- <%
- if ComDhcp.Enabled then
- %>
- <input type="submit" name="action" value="Disable DHCP">
- <%
- else
- %>
- <input type="submit" name="action" value="Enable DHCP">
- <%
- end if
- %>
- </center>
- <%
- if luci = 4 then
- %>
-
- <br>
-
- Dhcp server could not be started! See event log for details.
- <%
- end if
- %>
-
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-